package cn.itsource.itsource.controller;

import cn.itsource.itsource.domain.PetType;
import cn.itsource.itsource.service.IPetTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/pettype")
public class PetTypeController {
    @Autowired
    private IPetTypeService petTypeService;

    @GetMapping("/findall")
    public List<PetType> findAll(){
        return petTypeService.findAll();
    }


}
